{include file="public/header" /}



<div class="page">
    <div class="fixed-empty"></div>
    <form id="question_class_form" method="post" name="articleClassForm">
        <table class="ds-default-table">
            <tbody>
            <input type="hidden" id="id" name="id" value="{$model->id | default=0}">


            <tr class="noborder">
                <td colspan="2" class="required">
                    <label class="validation" for="ac_name">选项:</label>
                </td>
            </tr>
            {notempty name="options"}
            {foreach $options as $key => $val}
            <tr class="noborder">
                <td class="vatop rowform">
                    {$val->content}
                    <input type="hidden" name="options[]" value="{$val.id}">
                </td>
                <td class="vatop rowform">
                    选择跳转问题：
                    <select name="next_question[]" id="">
                        <option value="0">请选择</option>
                        {notempty name="questions"}
                        {foreach $questions as $k => $v}
                        <option {$val.next_question == $v.id ? 'selected' : ''} value="{$v.id}">{$v.title}</option>
                        {/foreach}
                        {/notempty}
                    </select>
                </td>
            </tr>
            {/foreach}
            {/notempty}
            </tbody>
            <tfoot>
            <tr class="tfoot">
                <td colspan="15" >
                    <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
                </td>
            </tr>
            </tfoot>
        </table>
    </form>
</div>
<script>

</script>
